package com.solome.util.csv;

import com.solome.core.ResourceModelImpl;

public class CsvTest extends ResourceModelImpl<CsvTest> {

	public CsvTest() {
		super("csv.csv", CsvTest.class);
	}

	/**
	 * 导入数据
	 */
	public void load() throws Exception {
		super.load();
	}

	@XlsKey
	@XlsInt
	@Num(1)
	private int id;

	@XlsString
	@Num(2)
	private String name;

	@XlsInt
	@Num(3)
	private int bossId;

	@XlsString
	@Num(4)
	private String fights;//

	@XlsInt
	@Num(5)
	private int backId;
	// @XlsInt
	// private int hp;
	//
	// @XlsInt
	// private int att;

	@XlsString
	@Num(6)
	private String time;

	@XlsString
	@Num(7)
	private String base;

	@XlsString
	@Num(8)
	private String turn;

	@XlsString
	@Num(9)
	private String luck;

	@XlsString
	@Num(10)
	private String kills;

	@XlsString
	@Num(11)
	private String harm; // 伤害奖励

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getBossId() {
		return bossId;
	}

	public void setBossId(int bossId) {
		this.bossId = bossId;
	}

	public String getFights() {
		return fights;
	}

	public void setFights(String fights) {
		this.fights = fights;
	}

	// public int getHp() {
	// return hp;
	// }
	//
	// public void setHp(int hp) {
	// this.hp = hp;
	// }
	//
	// public int getAtt() {
	// return att;
	// }
	//
	// public void setAtt(int att) {
	// this.att = att;
	// }

	public int getBackId() {
		return backId;
	}

	public void setBackId(int backId) {
		this.backId = backId;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getBase() {
		return base;
	}

	public void setBase(String base) {
		this.base = base;
	}

	public String getTurn() {
		return turn;
	}

	public void setTurn(String turn) {
		this.turn = turn;
	}

	public String getLuck() {
		return luck;
	}

	public void setLuck(String luck) {
		this.luck = luck;
	}

	public String getKills() {
		return kills;
	}

	public void setKills(String kills) {
		this.kills = kills;
	}

	public String getHarm() {
		return harm;
	}

	public void setHarm(String harm) {
		this.harm = harm;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		StringBuffer buffer = new StringBuffer();
		buffer.append("ID=" + id);
		buffer.append(",");
		buffer.append("name=" + name);
		buffer.append(",");
		buffer.append("bossID=" + bossId);
		buffer.append(",");
		buffer.append("fights=" + fights);
		buffer.append(",");
		buffer.append("backId=" + backId);
		buffer.append(",");
		buffer.append("time=" + time);
		buffer.append(",");
		buffer.append("base=" + base);
		buffer.append(",");
		buffer.append("luck=" + luck);
		buffer.append(",");
		buffer.append("kills=" + kills);
		buffer.append(",");
		buffer.append("harm=" + harm);
		return buffer.toString();
	}
}
